package com.hsgene.order.exception;

import com.hsgene.common.util.exception.ErrorCode;

/**
 * 小程序订单errorcode
 *
 * @author wxf
 * @date 2018/10/17 17:41
 **/
public enum AppletsOrderErrorCode implements ErrorCode {

    /**
     * 订单评论信息不能为空
     */
    ORDER_COMMENT_IS_NOT_NULL(70001, "ORDER_COMMENT_IS_NOT_NULL", "订单评论信息不能为空"),
    ORDER_COMMENT_IS_FAILED(70002, "ORDER_COMMENT_IS_FAILED", "订单评论失败"),
    ORDER_COMMENT_CONTENT_TOO_LONG(70003, "ORDER_COMMENT_CONTENT_TOO_LONG", "订单评论内容不能超过200字符"),
    ORDER_COMMENT_IMAGE_TOO_MANY(70004, "ORDER_COMMENT_IMAGE_TOO_MANY", "订单评论图片最多9张"),
    PAGKAGE_ID_IS_NOT_NULL(70005, "PAGKAGE_ID_IS_NOT_NULL", "订单评论套餐ID不能为空"),
    COMMENT_IMAGE_FORMAT_IS_ERROR(70006, "COMMENT_IMAGE_FORMAT_IS_ERROR", "订单图片格式不对"),
    ORDER_STATUS_IS_NOT_NULL(70007, "ORDER_STATUS_IS_NOT_NULL", "订单状态不能为空"),
    ORDER_INFO_IS_NOT_NULL(70008, "ORDER_INFO_IS_NOT_NULL", "订单信息不能为空"),
    ORDER_CONSIGNEE_IS_NOT_NULL(70009, "ORDER_CONSIGNEE_IS_NOT_NULL", "订单收件人不能为空"),
    ORDER_TESTER_IS_NOT_NULL(70010, "ORDER_TESTER_IS_NOT_NULL", "订单检测人不能为空"),
    ORDER_EMAIL_IS_NOT_NULL(70011, "ORDER_EMAIL_IS_NOT_NULL", "电子邮箱不能为空"),
    ORDER_SEX_IS_NOT_NULL(70012, "ORDER_SEX_IS_NOT_NULL", "性别不能为空"),
    ORDER_SOURCE_IS_NOT_NULL(70012, "ORDER_SOURCE_IS_NOT_NULL", "订单来源不能为空"),
    ORDER_TESTPROVES_IS_NOT_NULL(70013, "ORDER_TESTPROVES_IS_NOT_NULL", "检测证明不能为空"),
    ORDER_PACKAGE_IS_NOT_NULL(70014, "ORDER_PACKAGE_IS_NOT_NULL", "套餐不能为空"),
    ORDER_SEND_IS_NOT_NULL(70015, "ORDER_SEND_IS_NOT_NULL", "配送方式不能为空"),
    INVOICE_TITLE_IS_NOT_NULL(70016, "INVOICE_TITLE_IS_NOT_NULL", "发票抬头不能为空"),
    ORDER_ID_IS_ERPIRED(700050, "ORDER_ID_IS_ERPIRED", "订单已失效");

    private final int code;

    private final String message;

    private final String description;

    AppletsOrderErrorCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
